package com.maybach.core.dal.mapper;

import com.maybach.common.model.CarSnapDO;
import com.maybach.common.query.CarSnapQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for CarSnap.
 */
public interface CarSnapMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(CarSnapQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CarSnapQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CarSnapDO record);

    /**
     * insert selective.
     */
    int insertSelective(CarSnapDO record);

    /**
     * select by query condition.
     */
    List<CarSnapDO> selectByQuery(CarSnapQuery query);

    /**
     * select by primary key.
     */
    CarSnapDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") CarSnapDO record, @Param("query") CarSnapQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") CarSnapDO record, @Param("query") CarSnapQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CarSnapDO record);
}